package shuiyuqing.network.beans;


import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigDecimal;
import java.util.Calendar;

//import javax.persistence.Entity;
//import javax.persistence.Id;
//import javax.persistence.IdClass;
//import javax.persistence.JoinColumn;
//import javax.persistence.OneToOne;
//import javax.persistence.Table;

/**
 * 降雨量实时监测表
 * @author wangying
 *
 */
//@Entity
//@Table(name="t_IrrBRRain")
//@IdClass(StadiaCodeMeaTimePrimaryKey.class)
public class IrrBRRain {

//	private StadiaCodeMeaTimePrimaryKey stadiaCodeMeaTimePrimaryKey;//测站采集时间联合主键类	
	
	private String stadiaCode = "";			//测站编码
	private Calendar meaTime;			//采集时间
	private BigDecimal p = BigDecimal.ZERO;//雨量值
	private BigDecimal method = BigDecimal.ZERO;//操作方式
	private BigDecimal dState = BigDecimal.ZERO;//数据状态
	private BigDecimal  source = BigDecimal.ZERO;//数据来源
	private String remark = "";//备注

	@JSONField(serialize=false)
	private IrrBRStadia irrBRStadia;//实时降雨量表存在对测站的依赖关系
	
//	@Id
	public String getStadiaCode() {
		return stadiaCode;
	}

	public void setStadiaCode(String stadiaCode) {
		this.stadiaCode = stadiaCode;
	}

//	@Id
	public Calendar getMeaTime() {
		return meaTime;
	}

	public void setMeaTime(Calendar meaTime) {
		this.meaTime = meaTime;
	}

	public BigDecimal getP() {
		return p;
	}

	public void setP(BigDecimal p) {
		this.p = p;
	}

	public BigDecimal getMethod() {
		return method;
	}

	public void setMethod(BigDecimal method) {
		this.method = method;
	}

	public BigDecimal getdState() {
		return dState;
	}

	public void setdState(BigDecimal dState) {
		this.dState = dState;
	}

	public BigDecimal getSource() {
		return source;
	}

	public void setSource(BigDecimal source) {
		this.source = source;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}



//	@Id
//	public StadiaCodeMeaTimePrimaryKey getStadiaCodeMeaTimePrimaryKey() {
//		return stadiaCodeMeaTimePrimaryKey;
//	}
//
//	public void setStadiaCodeMeaTimePrimaryKey(
//			StadiaCodeMeaTimePrimaryKey stadiaCodeMeaTimePrimaryKey) {
//		this.stadiaCodeMeaTimePrimaryKey = stadiaCodeMeaTimePrimaryKey;
//	}
	
	


//	@OneToOne
//    @JoinColumn(name="stadiaCode",insertable=false,updatable=false)
	public IrrBRStadia getIrrBRStadia() {
		return irrBRStadia;
	}

	public void setIrrBRStadia(IrrBRStadia irrBRStadia) {
		this.irrBRStadia = irrBRStadia;
	}
	
	
}
